package com.jianyun.jyzs.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.jianyun.jyzs.R;
import com.jianyun.jyzs.widget.MyTextView;

/**
 * Created by yangshijun on 2018/10/11.
 */

public class TestAdaper extends RecyclerView.Adapter<TestAdaper.MyHodler> {

    private final Context context;

    public TestAdaper(Context context) {
        this.context = context;
    }

    @Override
    public MyHodler onCreateViewHolder(ViewGroup parent, int viewType) {
        View view2 = View.inflate(context, R.layout.item_newsign2_bottom, null);
        return new MyHodler(view2);
    }

    @Override
    public void onBindViewHolder(MyHodler holder, int position) {
        //holder.tv.setText("签到/签退若有异常,点击时间可重新签到/签退,即可更新考勤信息");
    }



    @Override
    public int getItemCount() {
        return 1;
    }

    class MyHodler extends RecyclerView.ViewHolder {
        MyTextView tv;

        public MyHodler(View itemView) {
            super(itemView);
            tv = itemView.findViewById(R.id.tv);
        }
    }

}
